﻿using System;
using System.Collections;
using System.Configuration;
using System.Data;
using System.Linq;
using System.Web;
using System.Web.Security;
using System.Web.UI;
using System.Web.UI.WebControls;
using System.Web.UI.WebControls.WebParts;
using System.Web.UI.HtmlControls;
using System.Xml.Linq;
using System.Data.SqlClient;
using Model.Admin.Order;

namespace OnlineFloralShop.Admin.Order
{
    public partial class OrderViewDetails : System.Web.UI.Page
    {
        Model.Admin.Order.Order order = new Model.Admin.Order.Order();
        public string conn = ConfigurationManager.ConnectionStrings["OnlineFloralShopConnection"].ConnectionString;
        public string str;
        public SqlDataAdapter da;
        public DataSet tble;
        protected void Page_Load(object sender, EventArgs e)
        {
            // lay ve id dc gui den tu trang orderdetails
            str = Request.QueryString["Id"].ToString();
            // hien thi test
            // this.Label1.Text = str;
            // binding data 
            FormView fv = (FormView)TabContainer1.FindControl("TabPanel1").FindControl("orderFormView");
            fv.DataSource = order.selectById(str);
            fv.DataBind();
            ListView listPro = (ListView)TabContainer1.FindControl("tab2").FindControl("listorder");
            listPro.DataSource = order.getProductOfOrder(str);
            listPro.DataBind();

        }
        protected void TabContainer1_ActiveTabChanged(object sender, EventArgs e)
        { 
        }
       
    }
}
